<?php

namespace Alipay\AlipayFund\Request;

use Alipay\AlipayFund\Info\Parties;
use Alipay\AlipayFund\Info\PayeeList;
use Alipay\AlipayFund\Response\AlipayFundBatchCloseResponse;
use Alipay\AlipayFund\Response\AlipayFundBatchDetailResponse;
use Alipay\AlipayFund\Response\AlipayFundTransPagePayResponse;
use Alipay\Common\Request;
use Alipay\Common\RequestBase;

class AlipayFundBatchDetailRequest extends RequestBase
{
    protected $method = 'alipay.fund.batch.detail.query';

    protected $response = AlipayFundBatchDetailResponse::class;

    /**
     * @var string $outBatchNo
     */
    protected $outBatchNo;

    /**
     * 生成请求参数
     * @return array
     * @author xis
     */
    public function generate(): array
    {
        return [
            'out_batch_no' => $this->outBatchNo,
            'product_code' => 'BATCH_API_TO_ACC',
            'biz_scene' => 'MESSAGE_BATCH_PAY',
        ];
    }

    /**
     * @param string $outBatchNo
     * @return AlipayFundBatchDetailRequest
     */
    public function setOutBatchNo(string $outBatchNo): self
    {
        $this->outBatchNo = $outBatchNo;
        return $this;
    }
}